package org.jeecg.modules.system.entity;

import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.doudian.open.api.afterSale_Detail.AfterSaleDetailRequest;
import com.doudian.open.api.afterSale_Detail.AfterSaleDetailResponse;
import com.doudian.open.api.afterSale_Detail.param.AfterSaleDetailParam;
import com.doudian.open.api.afterSale_List.AfterSaleListRequest;
import com.doudian.open.api.afterSale_List.AfterSaleListResponse;
import com.doudian.open.api.afterSale_List.data.RelatedOrderInfoItem;
import com.doudian.open.api.afterSale_List.param.AfterSaleListParam;
import com.doudian.open.api.brand_list.BrandListRequest;
import com.doudian.open.api.brand_list.BrandListResponse;
import com.doudian.open.api.brand_list.param.BrandListParam;
import com.doudian.open.api.freightTemplate_list.FreightTemplateListRequest;
import com.doudian.open.api.freightTemplate_list.FreightTemplateListResponse;
import com.doudian.open.api.freightTemplate_list.param.FreightTemplateListParam;
import com.doudian.open.api.logistics_newCreateOrder.LogisticsNewCreateOrderRequest;
import com.doudian.open.api.logistics_newCreateOrder.LogisticsNewCreateOrderResponse;
import com.doudian.open.api.logistics_newCreateOrder.param.*;
import com.doudian.open.api.material_createFolder.MaterialCreateFolderRequest;
import com.doudian.open.api.material_createFolder.MaterialCreateFolderResponse;
import com.doudian.open.api.material_createFolder.param.MaterialCreateFolderParam;
import com.doudian.open.api.material_queryMaterialDetail.MaterialQueryMaterialDetailRequest;
import com.doudian.open.api.material_queryMaterialDetail.MaterialQueryMaterialDetailResponse;
import com.doudian.open.api.material_queryMaterialDetail.param.MaterialQueryMaterialDetailParam;
import com.doudian.open.api.material_uploadImageSync.MaterialUploadImageSyncRequest;
import com.doudian.open.api.material_uploadImageSync.MaterialUploadImageSyncResponse;
import com.doudian.open.api.material_uploadImageSync.param.MaterialUploadImageSyncParam;
import com.doudian.open.api.order_batchDecrypt.OrderBatchDecryptRequest;
import com.doudian.open.api.order_batchDecrypt.OrderBatchDecryptResponse;
import com.doudian.open.api.order_batchDecrypt.param.CipherInfosItem;
import com.doudian.open.api.order_batchDecrypt.param.OrderBatchDecryptParam;
import com.doudian.open.api.order_batchSensitive.OrderBatchSensitiveRequest;
import com.doudian.open.api.order_batchSensitive.OrderBatchSensitiveResponse;
import com.doudian.open.api.order_batchSensitive.param.OrderBatchSensitiveParam;
import com.doudian.open.api.order_logisticsAdd.OrderLogisticsAddRequest;
import com.doudian.open.api.order_logisticsAdd.OrderLogisticsAddResponse;
import com.doudian.open.api.order_logisticsAdd.param.OrderLogisticsAddParam;
import com.doudian.open.api.order_orderDetail.OrderOrderDetailRequest;
import com.doudian.open.api.order_orderDetail.OrderOrderDetailResponse;
import com.doudian.open.api.order_orderDetail.param.OrderOrderDetailParam;
import com.doudian.open.api.order_searchList.OrderSearchListRequest;
import com.doudian.open.api.order_searchList.OrderSearchListResponse;
import com.doudian.open.api.order_searchList.param.OrderSearchListParam;
import com.doudian.open.api.product_addV2.ProductAddV2Request;
import com.doudian.open.api.product_addV2.ProductAddV2Response;
import com.doudian.open.api.product_addV2.param.ProductAddV2Param;
import com.doudian.open.api.product_getCatePropertyV2.ProductGetCatePropertyV2Request;
import com.doudian.open.api.product_getCatePropertyV2.ProductGetCatePropertyV2Response;
import com.doudian.open.api.product_getCatePropertyV2.param.ProductGetCatePropertyV2Param;
import com.doudian.open.api.product_qualificationConfig.ProductQualificationConfigRequest;
import com.doudian.open.api.product_qualificationConfig.ProductQualificationConfigResponse;
import com.doudian.open.api.product_qualificationConfig.param.ProductQualificationConfigParam;
import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryRequest;
import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryResponse;
import com.doudian.open.api.shop_getShopCategory.param.ShopGetShopCategoryParam;
import com.doudian.open.api.token.AccessTokenData;
import com.doudian.open.api.token_create.TokenCreateRequest;
import com.doudian.open.api.token_create.TokenCreateResponse;
import com.doudian.open.api.token_create.param.TokenCreateParam;
import com.doudian.open.core.AccessToken;
import com.doudian.open.core.AccessTokenBuilder;
import com.doudian.open.core.GlobalConfig;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.jeecg.common.system.vo.LoginUser;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @Description: 系统数据日志
 * @author: jeecg-boot
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Slf4j
public class OrderInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    /**
     * id
     */
    private String id;

    /**
     * 创建人登录名称
     */
    private String createBy;

    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人登录名称
     */
    private String updateBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    /**
     * 更新日期
     */
    private Date updateTime;

    private Integer status;

    private String totalFee;

    private String outTradeNo;

    private String openId;

    private String deviceNo;

    private String errReason;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String state;

    private Integer refundFlag;

    private Integer checkStatus;


    public static void main(String[] args) {
        GlobalConfig.initAppSecret("f71e7d1d-c8ab-4950-92ad-87c4a5c0ecc6");
        GlobalConfig.initAppKey("7329838164225312271");
        AccessToken accessToken = AccessTokenBuilder.parse("52836cae-331b-4cd0-b698-3c7eb53ee487");
        orderList(accessToken);
//        AccessToken accessToken = AccessTokenBuilder.parse("66d346e3-0dba-483f-adbc-8aad50b7209f");
//        kkk(accessToken);
//        AccessToken accessToken = new AccessToken();
//        AccessTokenData accessTokenData = new AccessTokenData();
//        accessTokenData.setAuthorityId("14647134");
//        accessToken.setData(accessTokenData);
//        TokenCreateRequest request = new TokenCreateRequest();
//        TokenCreateParam param = request.getParam();
////        param.setCode("82bdc687-eff1-4f63-8444-0b43086c6666");
//        param.setGrantType("authorization_self");
////        param.setTestShop("1");
////        param.setShopId("18899061");
//        param.setAuthId("14647134");
////        param.setAuthSubjectType("WuLiuShang");
//        TokenCreateResponse response = request.execute(accessToken);
//        System.out.println("response = " + response);


//        LogisticsNewCreateOrderRequest request = new LogisticsNewCreateOrderRequest();
//        LogisticsNewCreateOrderParam param = request.getParam();
//        SenderInfo senderInfo = new SenderInfo();
//        Address address = new Address();
//        address.setDetailAddress("detailAddress");
//        address.setCityName("cityName");
//        address.setCountryCode("countCode");
//        address.setStreetName("streetName");
//        address.setDistrictName("districtName");
//        address.setProvinceName("provinceName");
//        senderInfo.setAddress(address);
//        Contact contact = new Contact();
//        contact.setMobile("025-88498090");
//        contact.setName("name");
//        contact.setPhone("13913913913");
//        senderInfo.setContact(contact);
//        param.setSenderInfo(senderInfo);
//        List<OrderInfosItem> orderInfoList = new ArrayList<>();
//        OrderInfosItem orderInfosItem = new OrderInfosItem();
//        orderInfosItem.setOrderId("202011809");
//
//        ReceiverInfo receiverInfo = new ReceiverInfo();
//        Address_4_4 address44 = new Address_4_4();
//        address44.setDetailAddress("detailAddress");
//        address44.setCityName("cityName");
//        address44.setCountryCode("countCode");
//        address44.setStreetName("streetName");
//        address44.setDistrictName("districtName");
//        address44.setProvinceName("provinceName");
//
//        receiverInfo.setAddress(address44);
//        receiverInfo.setContact(contact);
//        orderInfosItem.setReceiverInfo(receiverInfo);
//
//        List<ItemsItem> itemsItems = new ArrayList<>();
//        ItemsItem itemsItem = new ItemsItem();
//        itemsItem.setItemCount(1);
//        itemsItem.setItemName("itemName");
//        itemsItems.add(itemsItem);
//        orderInfosItem.setItems(itemsItems);
//        orderInfoList.add(orderInfosItem);
//        param.setOrderInfos(orderInfoList);
//
//        param.setLogisticsCode("jtexpress");
//        param.setUserId(1L);
//        param.setOrderChannel("1");
//        LogisticsNewCreateOrderResponse response = request.execute(accessToken);


//        OrderLogisticsAddRequest request = new OrderLogisticsAddRequest();
//        OrderLogisticsAddParam param = request.getParam();
//        param.setOrderId("6926809969545384993");
////        param.setLogisticsId(0L);
////        param.setCompany("顺丰公司");
//        param.setCompanyCode("shunfeng");
//        param.setLogisticsCode("sf1231231231234");
////        param.setIsRefundReject(false);
////        param.setIsRejectRefund(false);
////        List<String> snList = new ArrayList<>();
////        snList.add("546443524543534");
////        snList.add("646443524543534");
////        param.setSerialNumberList(snList);
////        param.setAddressId(6L);
//        OrderLogisticsAddResponse response = request.execute(accessToken);
//        System.out.println("response = " + response);
    }

    public static void tuom(AccessToken accessToken) {
        OrderBatchSensitiveRequest request = new OrderBatchSensitiveRequest();
        OrderBatchSensitiveParam param = request.getParam();
        List<com.doudian.open.api.order_batchSensitive.param.CipherInfosItem> cipherInfos = new ArrayList<>();
        com.doudian.open.api.order_batchSensitive.param.CipherInfosItem cipherInfosItem = new com.doudian.open.api.order_batchSensitive.param.CipherInfosItem();
        cipherInfosItem.setCipherText("$$3J3P8zc5nYQGgDTPl1Yp5MHRSVqTjrKTS1pl2FU2PkQm2wmEU0PZ0VFFe48tB9kK6noJWFQCor3ZRpI7eEuMw7N5GnMV0RHgC1WD9tGbe/+cAQ==*CgYIASAHKAESPgo8aPAwALclfGtNdfoPHZh1MthLaDSTsuowVLX54sum7f+s4TCY2z86ADxLZIFJBVWDGAeW3G5bT6J2V0wyGgA=$1$$");
        cipherInfosItem.setAuthId("6924994991962854440");
        cipherInfos.add(cipherInfosItem);
        param.setCipherInfos(cipherInfos);
        OrderBatchSensitiveResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void jiemi(AccessToken accessToken) {
        OrderBatchDecryptRequest request = new OrderBatchDecryptRequest();
        OrderBatchDecryptParam param = request.getParam();

        List<CipherInfosItem> cipherInfos = new ArrayList<>();
        CipherInfosItem cipherInfosItem = new CipherInfosItem();
        cipherInfosItem.setCipherText("$$3J3P8zc5nYQGgDTPl1Yp5MHRSVqTjrKTS1pl2FU2PkQm2wmEU0PZ0VFFe48tB9kK6noJWFQCor3ZRpI7eEuMw7N5GnMV0RHgC1WD9tGbe/+cAQ==*CgYIASAHKAESPgo8aPAwALclfGtNdfoPHZh1MthLaDSTsuowVLX54sum7f+s4TCY2z86ADxLZIFJBVWDGAeW3G5bT6J2V0wyGgA=$1$$");
        cipherInfosItem.setAuthId("6924994991962854440");
        cipherInfos.add(cipherInfosItem);
        param.setCipherInfos(cipherInfos);
//        param.setAccountId("dy1001");
//        param.setAccountType("main_account");
//        param.setNeedVirtualPhone(1L);
        OrderBatchDecryptResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void orderDetail(AccessToken accessToken) {
        OrderOrderDetailRequest request = new OrderOrderDetailRequest();
        OrderOrderDetailParam param = request.getParam();
        param.setShopOrderId("6926610515669423379");
        OrderOrderDetailResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }


    /**
     * 订单列表
     */
    public static void orderList(AccessToken accessToken) {
        OrderSearchListRequest request = new OrderSearchListRequest();
        OrderSearchListParam param = request.getParam();
//        param.setProduct("3632796662625353076");
//        param.setBType(2L);
//        param.setAfterSaleStatusDesc("refund_success");
//        param.setTrackingNo("435435");
//        param.setPresellType(1L);
//        param.setOrderType(1L);1702112889
        // 获取当前时间
        LocalDateTime currentDate = LocalDateTime.now();

        // 将当前时间减去三个月
        LocalDateTime threeMonthsAgo = currentDate.minusMonths(3);
        LocalDateTime localDateTime = threeMonthsAgo.plusDays(1);
        // 转换为北京时间
        ZoneId beijingZoneId = ZoneId.of("Asia/Shanghai");
        ZonedDateTime currentBeijingTime = ZonedDateTime.of(currentDate, beijingZoneId);
        ZonedDateTime threeMonthsAgoBeijingTime = ZonedDateTime.of(localDateTime, beijingZoneId);

        // 将时间转换为时间戳（11位数字格式）
        long currentTimestamp = currentBeijingTime.toEpochSecond();
        long threeMonthsAgoTimestamp = threeMonthsAgoBeijingTime.toEpochSecond();

        System.out.println("当前时间的11位时间戳：" + currentTimestamp);
        System.out.println("三个月之前的11位时间戳：" + threeMonthsAgoTimestamp);
        param.setCreateTimeStart(threeMonthsAgoTimestamp);
        param.setCreateTimeEnd(currentTimestamp);
        param.setTrackingNo("JDAZ12276468145");

//        param.setOrderType(0L);
//        param.setPresellType(0L);
//        param.setAbnormalOrder(1L);
//        param.setTradeType(1L);
//        param.setUpdateTimeStart(1617355413L);
//        param.setUpdateTimeEnd(1617355413L);
        param.setSize(10L);
        param.setPage(0L);
        param.setOrderBy("create_time");
//        param.setOrderAsc(false);
//        param.setFulfilStatus("no_accept");
        OrderSearchListResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }


    public static void aaa(AccessToken accessToken) {
        AfterSaleListRequest request = new AfterSaleListRequest();
        AfterSaleListParam param = request.getParam();
//        param.setOrderId("6926809969545384993");
        param.setPage(0L);
        param.setSize(50L);
        AfterSaleListResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void bbb(AccessToken accessToken) {
        AfterSaleDetailRequest request = new AfterSaleDetailRequest();
        AfterSaleDetailParam param = request.getParam();
        param.setAfterSaleId("146278439891534812");
        param.setNeedOperationRecord(true);
        AfterSaleDetailResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void ccc(AccessToken accessToken) {
        MaterialCreateFolderRequest request = new MaterialCreateFolderRequest();
        MaterialCreateFolderParam param = request.getParam();
        param.setName("商品图片素材");
        param.setParentFolderId("0");
        param.setType(0);
        MaterialCreateFolderResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void ddd(AccessToken accessToken) {
        MaterialUploadImageSyncRequest request = new MaterialUploadImageSyncRequest();
        MaterialUploadImageSyncParam param = request.getParam();
        param.setFolderId("73317279326939057161746");
        param.setUrl("https://p9-aio.ecombdimg.com/img/ecom-shop-material/ThXhhVNI_m_edfbb7f05728f175b18903b32908f2d4_sx_1037208_www964-964~48x0_q90_b0.jpg");
        param.setMaterialName("aa.jpg");
        param.setFileUri("tos-cn-i-7veqoeduo3/9e1df78157524c63abf7caa9bb1e88e0");
        param.setNeedDistinct(false);
        MaterialUploadImageSyncResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void eee(AccessToken accessToken) {
        MaterialQueryMaterialDetailRequest request = new MaterialQueryMaterialDetailRequest();
        MaterialQueryMaterialDetailParam param = request.getParam();
        param.setMaterialId("73317288168154238070746");
        MaterialQueryMaterialDetailResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void fff(AccessToken accessToken) {
        ShopGetShopCategoryRequest request = new ShopGetShopCategoryRequest();
        ShopGetShopCategoryParam param = request.getParam();
        param.setCid(20005L);
        ShopGetShopCategoryResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void ggg(AccessToken accessToken) {
        ProductGetCatePropertyV2Request request = new ProductGetCatePropertyV2Request();
        ProductGetCatePropertyV2Param param = request.getParam();
        param.setCategoryLeafId(20219L);
        ProductGetCatePropertyV2Response response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void hhh(AccessToken accessToken) {
        BrandListRequest request = new BrandListRequest();
        BrandListParam param = request.getParam();
//        param.setCategories(Arrays.asList(123L));
        param.setOffset(0L);
        param.setSize(10L);
        param.setSort(0);
        param.setStatus(2);
        param.setFullBrandInfo(true);
        param.setCategoryId(20093L);
//        param.setQuery("wu");
//        param.setBrandIds(Arrays.asList(123L));
        BrandListResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void jjj(AccessToken accessToken) {
        ProductQualificationConfigRequest request = new ProductQualificationConfigRequest();
        ProductQualificationConfigParam param = request.getParam();
        param.setCategoryId(20005L);
        ProductQualificationConfigResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void yfmb(AccessToken accessToken) {
        FreightTemplateListRequest request = new FreightTemplateListRequest();
        FreightTemplateListParam param = request.getParam();
//        param.setName("模版1");
        param.setPage("0");
        param.setSize("10");
        FreightTemplateListResponse response = request.execute(accessToken);
        System.out.println("response = " + response);
    }

    public static void kkk(AccessToken accessToken) {
        ProductAddV2Request request = new ProductAddV2Request();
        ProductAddV2Param param = request.getParam();
//        param.setOuterProductId("232334");
        param.setProductType(0L);
        param.setCategoryLeafId(20219L);
//        param.setProductFormat("货号|8888^上市年份季节|2018年秋季");
        param.setName("xxx补水液okokok");
//        param.setRecommendRemark("这个商品很好啊");
        param.setPic("https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ThXhhVNI_m_6ced0cfcfaa9a6cc1587c7b9afbc485d_sx_172|https://p3-aio.ecombdimg.com/obj/ecom-shop-material/asdfljalsdkf|https://p3-aio.ecombdimg.com/obj/ecom-shop-material/风衣1");
        param.setDescription("https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ThXhhVNI_m_6ced0cfcfaa9a6cc1587c7b9afbc485d_sx_172");
//        param.setPayType(1L);
//        param.setDeliveryMethod(7);
//        param.setCdfCategory("1");
        param.setReduceType(1L);
//        param.setAssocIds("1|2|3");
        param.setFreightId(0L);
//        param.setWeight(1000.0);
//        param.setWeightUnit(1L);
        param.setDeliveryDelayDay(1L);
        param.setSupply7dayReturn(1L);
//        param.setPresellType(0L);
//        param.setPresellDelay(7L);
//        param.setPresellEndTime("2020-02-21 18:54:27");
        param.setMobile("40012345");
        param.setCommit(true);
//        param.setBrandId(1790975987L);
//        param.setRemark("备注");
//        param.setOutProductId(123L);
        param.setSpecName("颜色分类-尺码大小");
        param.setSpecs("颜色分类|红色,黑色^尺码大小|S,M");
        param.setSpecPrices("[{\"spec_detail_name1\":\"红色\",\"spec_detail_name2\":\"S\",\"spec_detail_name3\":\"\",\"stock_num\":11,\"price\":100,\"code\":\"\",\"step_stock_num\":0,\"supplier_id\":\"\",\"outer_sku_id\":\"\",\"delivery_infos\":[{\"info_type\":\"weight\",\"info_value\":\"100\",\"info_unit\":\"mg\"}]},{\"spec_detail_name1\":\"红色\",\"spec_detail_name2\":\"M\",\"spec_detail_name3\":\"\",\"stock_num\":22,\"price\":100,\"code\":\"\",\"step_stock_num\":0,\"supplier_id\":\"\",\"outer_sku_id\":\"\",\"delivery_infos\":[{\"info_type\":\"weight\",\"info_value\":\"100\",\"info_unit\":\"mg\"}]},{\"spec_detail_name1\":\"黑色\",\"spec_detail_name2\":\"S\",\"spec_detail_name3\":\"\",\"stock_num\":44,\"price\":100,\"code\":\"\",\"step_stock_num\":0,\"supplier_id\":\"\",\"outer_sku_id\":\"\",\"delivery_infos\":[{\"info_type\":\"weight\",\"info_value\":\"100\",\"info_unit\":\"mg\"}]},{\"spec_detail_name1\":\"黑色\",\"spec_detail_name2\":\"M\",\"spec_detail_name3\":\"\",\"stock_num\":55,\"price\":100,\"code\":\"\",\"step_stock_num\":0,\"supplier_id\":\"\",\"outer_sku_id\":\"\",\"delivery_infos\":[{\"info_type\":\"weight\",\"info_value\":\"100\",\"info_unit\":\"mg\"}]}]");
////        param.setSpecPic("img_url,img_url,img_url");
//        param.setMaximumPerOrder(200L);
//        param.setLimitPerBuyer(1L);
//        param.setMinimumPerOrder(2L);
        param.setProductFormatNew("{\"631\":[{\"value\": 9671, \"property_name\": \"可爱风\", \"diy_type\":1}]},");
//        param.setSpuId(14567L);
//        param.setAppointDeliveryDay(2L);
////        param.setThirdUrl("https://p9-aio.ecombdimg.com/img/ecom-shop-material/ThXhhVNI_m_edfbb7f05728f175b18903b32908f2d4_sx_1037208_www964-964~48x0_q90_b0.jpg");
////        param.setExtra("略");
////        param.setSrc("略");
        param.setStandardBrandId(596120136L);
//        param.setNeedCheckOut(true);
//        param.setCarVinCode("BA111111111111111");
//        param.setPresellConfigLevel(3L);
//        param.setNeedRechargeMode(true);
//        param.setAccountTemplateId("122112");
//        param.setPresellDeliveryType(1L);
////        param.setWhiteBackGroundPicUrl("https://p9-aio.ecombdimg.com/img/ecom-shop-material/ThXhhVNI_m_edfbb7f05728f175b18903b32908f2d4_sx_1037208_www964-964~48x0_q90_b0.jpg");
////        param.setLongPicUrl("https://p9-aio.ecombdimg.com/img/ecom-shop-material/ThXhhVNI_m_edfbb7f05728f175b18903b32908f2d4_sx_1037208_www964-964~48x0_q90_b0.jpg");
////        param.setAfterSaleService({   "supply_day_return_selector": "7-1"});
//        param.setStartSaleType(0L);
//        param.setMaterialVideoId("vaaaa");
//        param.setPickupMethod("0");
//        param.setSizeInfoTemplateId(101L);
////        param.setSubstituteGoodsUrl("https://p9-aio.ecombdimg.com/img/ecom-shop-material/ThXhhVNI_m_edfbb7f05728f175b18903b32908f2d4_sx_1037208_www964-964~48x0_q90_b0.jpg");
//        param.setSaleChannelType("sameAsOffline");
//        param.setStoreId(12345L);
//        param.setMainProductId(3121213121212L);
//        param.setSaleLimitId(123L);
        param.setNamePrefix("面料材质");
//        param.setReferencePrice(12300L);
//        param.setMainImageThreeToFour("https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ThXhhVNI_m_6ced0cfcfaa9a6cc1587c7b9afbc485d_sx_172|https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ThXhhVNI_m_6ced0cfcfaa9a6cc1587c7b9afbc485d_sx_172|https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ThXhhVNI_m_6ced0cfcfaa9a6cc1587c7b9afbc485d_sx_172|https://p3-aio.ecombdimg.com/obj/ecom-shop-material/ThXhhVNI_m_6ced0cfcfaa9a6cc1587c7b9afbc485d_sx_172");
//        param.setIsC2bSwitchOn(true);
//        param.setMicroAppId("abcde");
//        param.setIsAutoCharge(false);
//        param.setShortProductName("新品牛肉干");
//        param.setWithSkuType(true);
        ProductAddV2Response response = request.execute(accessToken);
        System.out.println("response = " + response);
    }


}
